package com.owen.service.impl;

import com.owen.dao.UsersMapper;
import com.owen.pojo.Users;
import com.owen.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UsersServiceImpl implements UsersService {

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public Users selectUserByName(String name) {
        return usersMapper.selectUserByName(name);
    }

    @Override
    public Users selectUserById(Long id) {
        return usersMapper.selectUserById(id);
    }
}